/**
 * 用户基础相关 Mock 数据
 * @author 杨世峰
 */

export default {
    registerSuccess: () => {
        return {
            "resultCode": 200,
            "message": "注册成功",
            "data": {
                "userName": "user11"
            }
        }
    },
    regiserFail: () => {
        return {
            "resultCode": 400,
            "message": "手机号已被注册，请更换手机号",
            "data": null
        }
    },
    loginSuccess: () => {
        return {
            "resultCode": 200,
            "message": "登录成功",
            "data": {
                "token": "eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJuaW5naGFvLm5ldCIsImV4cCI6IjE0Mzg5NTU0NDUiLCJuYW1lIjoid2FuZ2hhbyIsImFkbWluIjp0cnVlfQ.SwyHTEx_RQppr97g4J5lKXtabJecpejuef8AqKYMAJc",
                "userId": "1",
                "roleId": "2"
            }
        }
    },
    loginFail: () => {
        return {
            "resultCode": 400,
            "message": "账号不存在或密码错误",
            "data": null
        }
    },
    getSuccessUserInfo: () => {
        return {
            "resultCode": 400,
            "message": "账号不存在或密码错误",
            "data": {
                nickname: "张三",
                sex: "m",
                birthday: "2001-01-01",
                education: "本科",
                school: "天津大学",
                career: "学生",
            }
        }
    },
    modyfyUserINfoSuccess: () => {
        return {
            resultCode: 200,
            message: "用户信息修改成功",
            data: null
        }
    },
    modyfyUserINfoFail: () => {
        return {
            "resultCode": 400,
            "message": "修改信息失败",
            "data": null
        }
    }
}